#ifndef SirNr_H
#define SirNr_H
#include <iostream>

class SirNr{
		int size;
		int *ptr;
	public:
		friend std::ostream& operator<<(std::ostream&,const SirNr&);
		friend std::istream& operator>>(std::istream&,SirNr&);
		SirNr(int =10);
		void afisare()const;
		void citire();
		void add(int);
		int minim();
		int getSize()const;
		void ordonare();
		const SirNr& operator =(const SirNr&);
		bool operator ==(const SirNr&)const;
		bool operator !=(const SirNr &right)const{
			return !(*this==right);
		}
		const SirNr& operator+(const SirNr&);
		int operator*(const SirNr&);
		int &operator[](int);
		int operator[](int)const;
		
};

#endif
